package com.cxb.oauth2;

import com.cxb.oauth2.dto.Client;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 *  认证服务器
 */
@SpringBootApplication
@MapperScan("com.cxb.oauth2")
public class Oauth2JwtApplication implements ApplicationRunner {

    public static void main(String[] args) {

        SpringApplication.run(Oauth2JwtApplication.class, args);
    }

    @Override
    public void run(ApplicationArguments args) throws Exception {

//        new Client().selectAll().forEach(client -> System.out.println(client.getClient_id()+ " - " + client.getClientPwd()));
    }
}
